using System;
using System.Windows.Browser;

namespace HtmlUtilities
{
    public interface IBrowserInformation
    {
        Version BrowserVersion { get; }
        bool CookiesEnabled { get; }
        string Name { get; }
        string Platform { get; }
        string UserAgent { get; }
    }

    internal class BrowserInformationWrapper : IBrowserInformation
    {
        private readonly BrowserInformation _browserInformation;
        public BrowserInformationWrapper(BrowserInformation browserInformation)
        {
            _browserInformation = browserInformation;
        }

        public Version BrowserVersion
        {
            get { return _browserInformation.BrowserVersion; }
        }

        public bool CookiesEnabled
        {
            get { return _browserInformation.CookiesEnabled; }
        }

        public string Name
        {
            get { return _browserInformation.Name; }
        }

        public string Platform
        {
            get { return _browserInformation.Platform; }
        }

        public string UserAgent
        {
            get { return _browserInformation.UserAgent; }
        }
    }
}